/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package isd.inventario.vistas;

import java.io.Serializable;
import javax.persistence.Embeddable;

/**
 *
 * @author Claudio
 */
@Embeddable
public class ST_StockProductoDepositoPK implements Serializable {
       
    private String tippro;
    private String artcod;    
    private String codigoDeposito;
    private String codigoSector;
 

    public ST_StockProductoDepositoPK() {
    }

    public String getArtcod() {
        return artcod;
    }

    public void setArtcod(String artcod) {
        this.artcod = artcod;
    }

    public String getCodigoDeposito() {
        return codigoDeposito;
    }

    public void setCodigoDeposito(String codigoDeposito) {
        this.codigoDeposito = codigoDeposito;
    }

    public String getCodigoSector() {
        return codigoSector;
    }

    public void setCodigoSector(String codigoSector) {
        this.codigoSector = codigoSector;
    }
    
  
    public String getTippro() {
        return tippro;
    }

    public void setTippro(String tippro) {
        this.tippro = tippro;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final ST_StockProductoDepositoPK other = (ST_StockProductoDepositoPK) obj;
        if ((this.tippro == null) ? (other.tippro != null) : !this.tippro.equals(other.tippro)) {
            return false;
        }
        if ((this.artcod == null) ? (other.artcod != null) : !this.artcod.equals(other.artcod)) {
            return false;
        }
        if ((this.codigoDeposito == null) ? (other.codigoDeposito != null) : !this.codigoDeposito.equals(other.codigoDeposito)) {
            return false;
        }
        if ((this.codigoSector == null) ? (other.codigoSector != null) : !this.codigoSector.equals(other.codigoSector)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 89 * hash + (this.tippro != null ? this.tippro.hashCode() : 0);
        hash = 89 * hash + (this.artcod != null ? this.artcod.hashCode() : 0);
        hash = 89 * hash + (this.codigoDeposito != null ? this.codigoDeposito.hashCode() : 0);
        hash = 89 * hash + (this.codigoSector != null ? this.codigoSector.hashCode() : 0);
        return hash;
    }

    @Override
    public String toString() {
        return "ST_StockProductoDepositoPK{" + "tippro=" + tippro + "artcod=" + artcod + "deposi=" + codigoDeposito + "sector=" + codigoSector + '}';
    }

    

}
